<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>个人中心</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no, viewport-fit=cover" />
		<link href="phoneContent/plugin/mui/css/mui.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="phoneContent/css/style.css" />
    <link rel="stylesheet" href="phoneContent/css/Fit.css">
		<style type="text/css">
			.mui-table-view.mui-grid-view .mui-table-view-cell .mui-media-body,.mui-table-view.mui-grid-view .mui-table-view-cell{
				font-size: 12px;
			}
			.mui-grid-view.mui-grid-9{
				background: #fff;
				margin-bottom: 5px;
			}
			.memInfoBox{
				display: block;
			}
		</style>
	</head>
	<body>
		<header class="mui-bar mui-bar-nav bgRed bg_bar noshadow headerTop">
		    <h1 class="mui-title">个人中心</h1>
		    <a href="set.html" class="mui-pull-right mui-icon"> <img style="width: 22px;" src="phoneContent/img/set.png"/></a>
		</header>
		<div class="mui-content memberCenterBox" id="content">
			<div class="memInfoBox_wrap">
			    <div class="memInfoBox">
			    	<div class="headImg">
			    		<img class="headicon" src="phoneContent/img/headImg.png" alt="" />
			    		<button class="mui-btn mui-btn-jh" id="vip">普通</button>
			    	</div>
			    	<div class="memberInfo">
			    		<p id="userName">未设置</p>
			    		<span>ID:<em id="userId">123</em></span>
			    		<a class="editbtn" href="memberInfo.html">修改资料 <img src="phoneContent/img/right1.png"/></a>
			    	</div>
			    </div>
			</div>
		    <ul class="links_list">
		    	<li><a href="myCode.html"><img src="phoneContent/img/fx.png"/> <span>分享好友</span> <i class="mui-icon mui-icon-arrowright"></i></a></li>
		    	<!-- <li><a href="bingwallet.html"><img src="phoneContent/img/qbicon.png"/> <span>绑定钱包</span> <i class="mui-icon mui-icon-arrowright"></i></a></li> -->
		    	<li><a href="billList.html"><img src="phoneContent/img/bill.png"/> <span>我的奖金</span> <i class="mui-icon mui-icon-arrowright"></i></a></li>
				<li><a href="moneyList.html"><img src="phoneContent/img/bill.png"/> <span>提现记录</span> <i class="mui-icon mui-icon-arrowright"></i></a></li>
				<li><a href="withdraw-deposit.html"><img src="phoneContent/img/bill.png"/> <span>提现申请</span> <i class="mui-icon mui-icon-arrowright"></i></a></li>
		    	<li><a href="myTeam.html"><img src="phoneContent/img/wdtj.png"/> <span>我的推荐 <em>推荐代数:<i id="introduceNum" style="font-style:'normal'"></i></em></span> <i class="mui-icon mui-icon-arrowright"></i></a></li>
		    	<!-- <li><a href="ems.html"><img src="phoneContent/img/lx.png"/> <span>联系客服</span> <i class="mui-icon mui-icon-arrowright"></i></a></li> -->
		   	    <li><a href="site.html"><img src="phoneContent/img/notice.png"/> <span>收货地址</span> <i class="mui-icon mui-icon-arrowright"></i></a></li>
				<li id="addPay"><a href="addPay.html"><img src="phoneContent/img/notice.png"/> <span>添加收款方式</span> <i class="mui-icon mui-icon-arrowright"></i></a></li>
				<li><a href="myAccount.html"><img src="phoneContent/img/notice.png"/> <span>我的收款账户</span> <i class="mui-icon mui-icon-arrowright"></i></a></li>
				<li><a href="changePassword.html"><img src="phoneContent/img/notice.png"/> <span>修改密码</span> <i class="mui-icon mui-icon-arrowright"></i></a></li>
		    </ul>
		</div>
		<input type="hidden" class="tabShow" name="" id="" value="2" placeholder="导航索引" />
		<script src="phoneContent/js/jquery-3.3.1.js" type="text/javascript" charset="utf-8"></script>
		<script src="phoneContent/js/jquery.cookie.js" type="text/javascript" charset="utf-8"></script>
		<script src="phoneContent/plugin/mui/js/mui.js" type="text/javascript" charset="utf-8"></script>
		<script src="phoneContent/js/foot.js"></script>
		<script src="phoneContent/js/appcontent.js"></script>
    <script src="phoneContent/js/Fit.js"></script>
		<script type="text/javascript">
			var token = getToken();
			let user = JSON.parse(window.localStorage.getItem('userInfo'));
			if(user){
				let introduce=window.localStorage.getItem('introduce')
				if(user.jStatus){
					$("#vip").html('vip')
				}
				$("#userId").html(user.id);
				$("#userName").html(user.userName);
				var ret = playGet(`/v1/api/users/tj/${user.id}`,"","",token);
				if(ret.code == 200){
					$("#introduceNum").html(ret.data.length)
				}else{
					mui.alert(ret.msg);
				}
				var ret1 = playGet(`v1/api/blance/site/${user.id}`,"","",token);
				if(ret1.code == 200){
					if(ret1.data.length>0){
						$("#addPay").hide()
					}else{
						$("#addPay").show()
					}
				}else{
					mui.alert(ret1.msg);
				}
			}
		</script>
	</body>
</html>